package com.njit.aoip.model;

import java.io.Serializable;

public class IPModel implements Serializable {
    /**
     * id
     */
    private int id;
    /**
     * ip版本号
     */
    private int ipVersion;
    /**
     * 优先权
     */
    private int priority;
    /**
     * 最大吞吐量
     */
    private boolean TFlag;
    /**
     * 最高可靠性
     */
    private boolean RFlag;
    /**
     * 头部长度
     */
    private int headerLength;
    /**
     * 总长度
     */
    private int totalLength;
    /**
     * 标识
     */
    private int identification;
    /**
     * Don't Fragment
     */
    private boolean df;
    /**
     * More Fragment
     */
    private boolean mf;
    /**
     * 片偏移
     */
    private int offSet;
    /**
     * TTL
     */
    private int ttl;
    /**
     * 协议
     */
    private String protocol;
    /**
     * 源ip
     */
    private String sourceIP;
    /**
     * 目的ip
     */
    private String destinationIP;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIpVersion() {
        return ipVersion;
    }

    public void setIpVersion(int ipVersion) {
        this.ipVersion = ipVersion;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public boolean isTFlag() {
        return TFlag;
    }

    public void setTFlag(boolean TFlag) {
        this.TFlag = TFlag;
    }

    public boolean isRFlag() {
        return RFlag;
    }

    public void setRFlag(boolean RFlag) {
        this.RFlag = RFlag;
    }

    public int getHeaderLength() {
        return headerLength;
    }

    public void setHeaderLength(int headerLength) {
        this.headerLength = headerLength;
    }

    public int getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(int totalLength) {
        this.totalLength = totalLength;
    }

    public int getIdentification() {
        return identification;
    }

    public void setIdentification(int identification) {
        this.identification = identification;
    }

    public boolean isDf() {
        return df;
    }

    public void setDf(boolean df) {
        this.df = df;
    }

    public boolean isMf() {
        return mf;
    }

    public void setMf(boolean Mf) {
        this.mf = Mf;
    }

    public int getOffSet() {
        return offSet;
    }

    public void setOffSet(int offSet) {
        this.offSet = offSet;
    }

    public int getTtl() {
        return ttl;
    }

    public void setTtl(int ttl) {
        this.ttl = ttl;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getSourceIP() {
        return sourceIP;
    }

    public void setSourceIP(String sourceIP) {
        this.sourceIP = sourceIP;
    }

    public String getDestinationIP() {
        return destinationIP;
    }

    public void setDestinationIP(String destinationIP) {
        this.destinationIP = destinationIP;
    }
}
